<?php

if(!defined('DEFINES_OPTICA_CAPITAL')) {

    define('DEFINES_OPTICA_CAPITAL', 'DEFINEDS_OPTICA_CAPITAL_CONSTANTS');
    
    define("HTML", "src/view/");
    define("FORMS", HTML."forms/");
    define("LISTS", HTML."list/");
    define("MENU", HTML."menu/");
    define("UTIL", "src/util/");
    define("CONTENT_CONTROLLER", UTIL."content.controller.php");
    define("FUNCTION_CONTROLLER", UTIL."function.controller.php");
    define("PRINT_CONTROLLER", UTIL."print.controller.php");
    define("AJAX_CONTROLLER", UTIL."ajax.controller.php");
    define("SERVICES_FILE", UTIL."services.ini");

    define("SERVICES", "src/ajax/");
    define("CONTROLLERS", "src/control/");
    define("MODELS", "src/dao/");
    define("ENTITIES", "src/entity/");
    define("PRINTERS", "src/print/");
    
    define("LOGIN_FORM", FORMS."login.php");

    define("IMAGES", "images/");
    define("GRID_ICONS", IMAGES."grid-icons/");

    define("SESSION_ID_FUNC", "id_funcionario");
    define("SESSION_PERFIL_FUNC", "perfil_funcionario");
    define("SESSION_LOJA_FUNC", "loja_funcionario");
    define("SESSION_LOJA_SIGLA_FUNC", "loja_sigla_funcionario");
    define("SESSION_NOME_FUNC", "nome_funcionario");
    define("SESSION_CARGO_FUNC", "cargo_funcionario");

    define("MESSAGE_COOKIE", "message_cookie");
    define("PASSWORD_GERENTE_COOKIE", "pass_gerent_cookie");
    define("OPEN_CAD", "open-cad");
    define("JS_OPEN_CAD", "document.getElementById('add-btn-tool').onclick();");

    define("PERFIL_OPERADOR", '2');
    define("PERFIL_VENDEDOR", '3');
    define("PERFIL_GERENTE", '4');
    define("PERFIL_ADMINISTRADOR", '1');
    
    define("SQL_CMP_CLAUSE_LIKE", "LIKE");
    define("SQL_CMP_CLAUSE_EQUAL", "=");
    define("SQL_CMP_CLAUSE_EQUAL_WITHOUT_QUOTES", "= NO ''");
    define("SQL_IS_NULL_CLAUSE", 'IS_NULL');
    define("SQL_IS_NOT_NULL_CLAUSE", 'IS_NOT_NULL');
    define("SQL_CMP_BETWEEN_CLAUSE", 'BETWEEN');
    define("SQL_CMP_IN_CLAUSE", 'IN');
    define("SQL_CMP_NOT_IN_CLAUSE", 'NOT_INT');
}
?>
